package com.newy.dao.sys;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.newy.core.hibernate.CnOrder;
import com.newy.core.hibernate.HibernateDao;
import com.newy.domain.sys.Role;

/**
 * 
 * @author linzongxue
 *
 */
@Repository
public class RoleDao extends HibernateDao<Role, Long> {
	/**
	 * 获取所有角色，按名称排序
	 */
	public List<Role> getAll(){
		return this.getAll(CnOrder.asc("name"));
	}
}
